<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <title></title>
</head>

<body>
    <div id="app">
        <div  v-html="unescapeHTML(message)"></div>
    </div>
    <script>
        const { createApp, ref,onMounted } = Vue
        createApp({
            setup() {
                const message = ref('')
                const index =location.search.indexOf('=')
                const params=location.search.slice(index+1)
                const unescapeHTML = (htmlString) => {
                    const txt = document.createElement("textarea");
                    txt.innerHTML = htmlString;
                    return txt.value;
                }
                onMounted(()=>{
                    document.title=params==='privacy'?'隐私协议':'服务协议'
                })
                axios({
                    url:'http://app.zeronine-in.cn/index.php/appv1/init/alltxt',

                }).then((data)=>{
                    message.value=data.data.txt[params]
                })
                return {
                    message,
                    unescapeHTML
                }
            }
        }).mount('#app')
    </script>
</body>

</html>